package study.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import study.base.environment.Wisely2Settings;
import study.base.environment.WiselySettings;

/**
 * Created by lazy on 17-5-17.
 */
@Controller
public class PropsController {
    @Autowired
    Wisely2Settings wisely2Settings;

    @RequestMapping("/myprops")
    public
    @ResponseBody
    String myprops() {
//        System.out.println(wiselySettings.getGender() + "---" + wiselySettings.getName());
        System.out.println(wisely2Settings.getGender() + "===" + wisely2Settings.getGender());
        return "ok";
    }
}
